#include <stdint.h>

#define ENERGY_TASK_DEALY 300*1000
#define TEMPERATURE_TASK_DEALY 5*1000
#define STRONG_CURRENT_TASK_DELAY 400
#define WEAK_CURRENT_TASK_DELAY 100
#define TILT_TASK_DELAY 3000
#define OLED_TASK_DELAY 5*1000
#define HEART_DEFAULT_DELAY 10*1000
#define PLAN_TASK_DELAY 200
#define OVER_VOLTAGE_TIMES 3
#define LOW_VOLTAGE_TIMES 5
#define OPEN_CIRCUIT_VALUES 0.03
#define OPEN_CIRCUIT_VALUES_220 0.02
#define LED_OVER_CURRENT 5
#define LED_BALLAST_CURRENT_FAULT 0.7
#define POWER_DOWN_DEALY 1000
#define WEAK_TICK_LENGTH 5
#define STRONG_TICK_LENGTH 5
/**
 * @brief 数据采集模块初始化
 * @return uint8_t SUCCESS：成功  ERROR：失败
 */
int32_t app_data_init(void);

/**
 * @brief app_data_heart_set
 * @return uint8_t OK：成功  ERROR_COM：失败
 */
int32_t app_data_heart_set( uint16_t heart_beat_lenth );
